/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: Job
 * Author:   pc
 * Date:     2019/9/6 14:38
 * Description: JOb测试
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.example.rabbitmqdemo.job;

import lombok.extern.slf4j.Slf4j;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 〈功能：〉<br> 
 * 〈JOb测试〉
 * @author liuhaoran
 * @create 2019/9/6 14:38
 * @since 1.0.0
 */
@Slf4j
public class Job extends QuartzJobBean {
	@Override
	protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
		// 获取参数
		JobDataMap jobDataMap = jobExecutionContext.getJobDetail().getJobDataMap();
		// 业务逻辑 ...
		log.info("------springbootquartzonejob执行"+jobDataMap.get("name").toString()+"###############"+jobExecutionContext.getTrigger());

	}
}